[IN PROGRESS] Integration/Mapping
/integration/:id/mapping/apply
Validates mapping records for one integration and stores the valid ones; invalid records are returned in failed and not written. This is the only way to write per-field mapping for an integration (there is no unvalidated PUT).
- Permission:
integration.edit; the integration must be available to the caller, otherwise 404. - Runs exactly the checks of
POST /v1/integration/{id}/mapping/validate;failedholds those rows (same shape). Valid records are written even when others fail. mode: overwrite(default) inserts or updates each valid record.mode: appendskips a record whose (level, entity, field) already has a row, even a will-not-map or empty one, and counts it inskipped.- Array values replace the stored array entirely.
wnm: truestores a will-not-map marker (value null). Sending an empty value stores an empty row, which resolution skips; useDELETE /v1/integration/{id}/mappingto remove a row. - Rows are written one by one, not in a transaction.
- Queues tag rebuilds for the publishers the written rows reach (integration level: every publisher using it; ad stack: publishers with units on it; organisation: its publishers and its child organisations’; publisher / ad unit: that publisher). Rebuilds are hash-compared so only real changes build; more than 25 publishers are checked in the background.
- For records spanning several integrations use
POST /v1/mapping/apply.
POST
/integration/:id/mapping/apply
Authorizations
Path Parameters
Query Parameters
Optional publisher uid. When given, the integration is looked up among those available to this publisher's organisation (and its parents) instead of the caller's own. The publisher must exist and not be archived; a restricted (non-core) caller may only pass a publisher of their own organisation, otherwise 404 Not Found.
Required range:
x >= 1Body
application/json
/integration/:id/mapping/apply